
FLAG = -std=c99
CFLAG = -c $(FLAG) 

treemain: tree.o tree_main.o
	gcc $(FLAG) tree_main.o tree.o -o treemain

debug: tree.o tree_main.o
	gcc -g -std=c99 tree_main.o tree.o -o treemain

treemain.o: tree_main.c
	gcc $(CFLAG) tree_main.c -o tree_main.o

tree.o: tree.c tree.h
	gcc $(CFLAG) tree.c -o tree.o

clean:
	rm -rf *.o treemain
